load("@rules_python//python:defs.bzl", "py_binary")
load("@pip_deps//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

py_binary(
    name = "aead_cli_python",
    testonly = 1,
    srcs = ["aead_cli.py"],
    main = "aead_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:tink_python",
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink/aead",
    ],
)

py_binary(
    name = "deterministic_aead_cli_python",
    testonly = 1,
    srcs = ["deterministic_aead_cli.py"],
    main = "deterministic_aead_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:tink_python",
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink/daead",
    ],
)

py_binary(
    name = "public_key_sign_cli_python",
    testonly = 1,
    srcs = ["public_key_sign_cli.py"],
    main = "public_key_sign_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink:tink_python",
        "@tink_py//tink/signature",
    ],
)

py_binary(
    name = "public_key_verify_cli_python",
    testonly = 1,
    srcs = ["public_key_verify_cli.py"],
    main = "public_key_verify_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink:tink_python",
        "@tink_py//tink/signature",
    ],
)

py_binary(
    name = "mac_cli_python",
    testonly = 1,
    srcs = ["mac_cli.py"],
    main = "mac_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink:tink_python",
        "@tink_py//tink/mac",
    ],
)

py_binary(
    name = "hybrid_encrypt_cli_python",
    testonly = 1,
    srcs = ["hybrid_encrypt_cli.py"],
    main = "hybrid_encrypt_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:tink_python",
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink/hybrid",
    ],
)

py_binary(
    name = "hybrid_decrypt_cli_python",
    testonly = 1,
    srcs = ["hybrid_decrypt_cli.py"],
    main = "hybrid_decrypt_cli.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        requirement("absl-py"),
        "@tink_py//tink:tink_python",
        "@tink_py//tink:cleartext_keyset_handle",
        "@tink_py//tink/hybrid",
    ],
)
